package com.ztc.ZtcRefundRatio.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ztc.ZtcRefundRatio.bean.ZtcRefundRatio;
import com.ztc.ZtcRefundRatio.dao.ZtcRefundRatioDao;

@Service("ZtcRefundRatio")
public class ZtcRefundRatioManager{

    @Autowired
    ZtcRefundRatioDao ztcRefundRatioDao;


    public void save(ZtcRefundRatio ztcRefundRatio){
        ztcRefundRatioDao.save(ztcRefundRatio);
    }

    public void removeById(String id) {
        ztcRefundRatioDao.removeById(id);
    }

    public ZtcRefundRatio findUniqueBy(String propertyName, Object value) {
        return ztcRefundRatioDao.findUniqueBy(propertyName, value);
    }

    public List<ZtcRefundRatio> findBy(String propertyName1, Object value1, String propertyName2, Object value2) {
        return ztcRefundRatioDao.findBy(propertyName1, value1, propertyName2, value2);
    }

    public List<ZtcRefundRatio> findBy(String propertyName, Object value) {
        return ztcRefundRatioDao.findBy(propertyName, value);
    }

    public ZtcRefundRatio get(String zid) {
        return ztcRefundRatioDao.get(zid);
    }
}
